<?php $this->load->view('layout/header'); ?>
<?php js('skins','tourism')?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">商品管理</a></li>
            <li><a href="<?php echo site_url('tourismtemplet/grid') ?>">运费模版</a></li>
            <li  class="active"><a href="javascript:;">添加运费模板</a></li>
        </ul>
        <?php echo execute_alert_message() ?>
        <div class="product-alls">
            <div class="product-fonter">新增运费模板</div>
            <form class="form-horizontal" action="<?php echo site_url('tourismtemplet/addPost')?>" method="post" id="tourismtemplet_add">
                <div class="form-group">
                    <label class="col-sm-1 control-label">模板名称</label>
                    <div class="col-xs-6">
                         <input type="text" class="form-control required" name="name">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">快递方式</label>
                    <div class="col-xs-6 control-right-label">
                        <ul>
                            <li class="radio"><label><input type="radio" class="required" name="logistics" value="1">快递</label></li>
                            <li class="radio"><label><input type="radio" class="required" name="logistics" value="2">物流</label></li>
                        </ul>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">计价方式</label>
                    <div class="col-xs-6 control-right-label clearfix">
                        <ul>
                            <li class="radio"><label><input type="radio" key="1" class="required" name="methods" value="1">件</label></li>
                            <li class="radio"><label><input type="radio" key="2" class="required" name="methods" value="2">重量</label></li>
                        </ul>
                    </div>
                </div>
                <div class="product-footer">
                    <div class="order weight clearfix" style="display:none" >
                        <p>默认运费
                            <input type="text" class="text required" name="weight_first_unit" ><span>公斤</span>内，
                            <input type="text" class="text required" name="weight_first_price">元，每增加
                            <input type="text" class="text required" name="weight_add_unit"><span>公斤</span>，增加
                            <input type="text" class="text required" name="weight_add_price">元</p>
                        <a href="javascript:;">设置各地运费标准</a>
                    </div>
                    <div class="order piece clearfix" style="display: none">
                        <p>默认运费
                            <input type="text" class="text required" name="piece_first_unit" ><span>件</span>内，
                            <input type="text" class="text required" name="piece_first_price">元，每增加
                            <input type="text" class="text required" name="piece_add_unit"><span>件</span>，增加
                            <input type="text" class="text required" name="piece_add_price">元
                        </p>
                        <a href="javascript:;">设置各地运费标准</a>
                    </div>
                    <div class="odr-table">
                    </div>
                </div>
                <div class="form-btn">
                    <a href="javascript:;">
                        <button class="btn btn-info" >保存</button>
                    </a>
                    <a href="<?php echo site_url('tourismtemplet/grid');?>">返回上一步</a>
                </div>
            </form>
            <?php $this->load->view('tourismtemplet/area')?>
        </div>
    </div>
</div>
<script>
    $('.form-btn').on('click','.btn-info',function(){
        if(!$('#tourismtemplet_add').valid()){
            return false;
        }
    })
</script>
<?php $this->load->view('layout/footer'); ?>
